﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MyMessage.aspx.cs" Inherits="Main_MyMessage" %>

<%@ Register src="../top.ascx" tagname="top" tagprefix="uc1" %>
<%@ Register src="../bottom.ascx" tagname="bottom" tagprefix="uc2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
     <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <title><%=   ConfigurationSettings.AppSettings["title"]   %>-我的消息</title>
	<meta name="Keywords" content="<%=   ConfigurationSettings.AppSettings["Keywords"]   %>" />
    <meta name="description" content="<%=   ConfigurationSettings.AppSettings["description"]   %>" />
    <link href="../css/header/header.css" rel="stylesheet" type="text/css" />
    <link href="../css/footer/footer.css" rel="stylesheet" type="text/css" />
    <link href="../css/register/register.css" rel="stylesheet" type="text/css" /> 
</head>
<body>
    <form id="form1" runat="server">
    <uc1:top ID="top1" runat="server" />
    <div style="width:680px;margin:5px auto;text-align:center;">
        <asp:GridView ID="gvnews" runat="server" AllowPaging="True" 
            AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" 
            BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="Nid" 
            OnPageIndexChanging="gvnews_PageIndexChanging" OnRowCommand="gvnews_RowCommand" 
            PageSize="20" Width="680px" onrowdatabound="gvnews_RowDataBound">
            <Columns>
                <asp:TemplateField HeaderText="标题">
                    <ItemTemplate>
                        <asp:HyperLink ID="hltitle" runat="server" Target="_blank" 
                            Text='<%# Eval("Nmaintitle") %>' ToolTip='<%# Eval("Nmaintitle") %>'></asp:HyperLink>
                    </ItemTemplate>
                    <ItemStyle Font-Bold="True" Font-Size="15px" />
                </asp:TemplateField>
                <asp:BoundField DataField="Tname" HeaderText="板块" >
                    <ItemStyle Font-Bold="True" Font-Size="15px" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="发布时间">
                    <ItemTemplate>
                        <asp:Label ID="labtime" runat="server" Text='<%# Eval("Ntime") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle Font-Bold="True" Font-Size="15px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="审核状态">
                    <ItemTemplate>
                        <asp:Label ID="labstate" runat="server" Text='<%# Eval("Nstate") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle Font-Bold="True" Font-Size="15px" />
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:HyperLink ID="hlupdate" runat="server">修改</asp:HyperLink>
                    </ItemTemplate>
                    <ItemStyle Font-Bold="True" Font-Size="15px" />
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:LinkButton ID="lbdelete" runat="server" 
                            CommandArgument='<%# Eval("Nid") %>' CommandName="del">删除</asp:LinkButton>
                    </ItemTemplate>
                    <ItemStyle Font-Bold="True" Font-Size="15px" />
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="White" ForeColor="#000066" />
            <RowStyle ForeColor="#000066" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
            <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="#EEEEEE" />
        </asp:GridView>
        </br>
        <asp:Button ID="btnreturn" runat="server" CssClass="loginbtn" Text="返回首页" 
            onclick="btnreturn_Click" />    
    </div>
    <uc2:bottom ID="bottom1" runat="server" />
    </form>
</body>
</html>
